home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / plog.lha / PLog / AmiTCP-Install < prev    next >
Text File  |  1996-04-04  |  4KB  |  123 lines

  1. ;
  2. ; Installation script for PLog
  3. ;
  4. ; created on 04.04.1996 by Kai Hofmann
  5. ;
  6.  
  7. (if (= @language "english") ;then
  8.     (
  9.      (set #welcome (cat "Welcome to PLog which is "
  10.                         "copyright 1996 Kai Hofmann\n\n")
  11.      )
  12.      (set #iuquest ("What do you want to do with the %s?\n\n" @app-name))
  13.      (set #iuc1    "Install")
  14.      (set #iuc2    "Uninstall")
  15.      (set #use37   ("You must be using Kickstart 2.04 or higher to install and use the %s" @app-name))
  16.      (set #choiceyes "Yes")
  17.      (set #choiceno "No")
  18.  
  19.      (set #removelib ("Removing %s" @app-name))
  20.      (set #libnotfound ("Sorry, could not find %s" @app-name))
  21.      (set #endunin ("\nUninstalling %s finished!" @app-name))
  22.     )
  23. )
  24.  
  25. (if (= 0 (askchoice (prompt #iuquest)
  26.                     (choices #iuc1 #iuc2)
  27.                     (default 0)
  28.                     (help @askchoice-help)
  29.          )
  30.     )
  31.     (
  32.      ; Install
  33.      (if (< (/ (getversion) 65536) 37)
  34.          (abort #use37)
  35.      )
  36.      (welcome #welcome)
  37.      (complete 0)
  38.      (set @default-dest "AmiTCP:bin")
  39.      (if (= @language "english") ;then
  40.          (
  41.           (set #cplprompt ("Copying %s to %s" @app-name @default-dest))
  42.          )
  43.      )
  44.  
  45.      (set cpu (database "cpu"))
  46. ;     (if (patmatch cpu "68000")
  47.          (copyfiles (prompt #cplpromt)
  48.                   (source "bin/PLogStart")
  49.                   (dest @default-dest)
  50.                   (newname "PLogStart")
  51.                   (optional "askuser")
  52.                   (help @copyfiles-help)
  53.          )
  54.          (complete 20)
  55.          (copyfiles (prompt #cplpromt)
  56.                   (source "bin/PLogEnd")
  57.                   (dest @default-dest)
  58.                   (newname "PLogEnd")
  59.                   (optional "askuser")
  60.                   (help @copyfiles-help)
  61.          )
  62.          (complete 40)
  63.          (copyfiles (prompt #cplprompt)
  64.            (source "doc/PLog.guide")
  65.            (dest "AmiTCP:help")
  66.            (infos)
  67.            (optional "askuser")
  68.            (help @copyfiles-help)
  69.          )
  70.          (complete 60)
  71.          (run "echo >>AmiTCP:db/User-Startnet \"AmiTCP:util/parseconfig providerfile AmiTCP:db/Provider.conf*Ncopy ENV:Config_AmiTCP/provider/Name ENV:Config_AmiTCP/provider/Phone ENV: quiet*NPLogStart HOSTNUMBER=*$Phone HOSTNAME=*$Name\"")
  72.          (complete 80)
  73.          (run "echo >>AmiTCP:db/User-Stopnet \"PLogEnd\"")
  74. ;     )
  75.      (complete 100)
  76.     )
  77. ;else
  78.     (
  79.      ; Uninstall
  80.      (complete 0)
  81.      (if (exists "AmiTCP:bin/PLogStart" (noreq))
  82.          (delete "AmiTCP:bin/PLogStart"
  83.                  (prompt #removelib)
  84.                  (help @delete-help)
  85.                  (optional "force")
  86.          )
  87.          (message #libnotfound)
  88.      )
  89.      (complete 25)
  90.      (if (exists "AmiTCP:bin/PLogEnd" (noreq))
  91.          (delete "AmiTCP:bin/PLogEnd"
  92.                  (prompt #removelib)
  93.                  (help @delete-help)
  94.                  (optional "force")
  95.          )
  96.          (message #libnotfound)
  97.      )
  98.      (complete 50)
  99.      (if (exists "AmiTCP:help/PLog.guide" (noreq))
  100.          (delete "AmiTCP:help/PLog.guide"
  101.                  (prompt #removelib)
  102.                  (help @delete-help)
  103.                  (optional "force")
  104.          )
  105.          (message #libnotfound)
  106.      )
  107.      (complete 75)
  108.      (if (exists "AmiTCP:help/PLog.guide.info" (noreq))
  109.          (delete "AmiTCP:help/PLog.guide.info"
  110.                  (prompt #removelib)
  111.                  (help @delete-help)
  112.                  (optional "force")
  113.          )
  114.      )
  115.      (complete 100)
  116.      (message #endunin
  117.          "\n\n"
  118.          "Please remove the commands 'PLogStart' from AmiTCP:db/User-Startnet (including the copy and parseconfig commands in front of it) and 'PLogEnd' from AmiTCP:db/User-Stopnet by hand!"
  119.      )
  120.      (exit (quiet))
  121.     )
  122. )
  123.